如题。

~$ git-sh
!weakish *> git init
Initialized empty Git repository in /home/weakish/.git/
master!weakish *> exit
; rm -rf .git                                                                                                  ➜  /m/p/m/segmentfault-news (master) ✗ 
; git-sh                                                                                                       ➜  /m/p/m/segmentfault-news (master) ✗ 
master!myrepo/segmentfault-news *> cd /tmp/test
!test *> git init
Initialized empty Git repository in /tmp/test/.git/
master!test *> echo hello > world
master!test *> a world
master!test *> s
A  world
master!test *> ci -m 'hello world'
[master (root-commit) f4317d6] hello world
 1 file changed, 1 insertion(+)
 create mode 100644 world
master!test> l
f4317d6 hello world
master!test> echo hi > world
master!test *> d
diff --git a/world b/world
index ce01362..45b983b 100644
--- a/world
+++ b/world
@@ -1 +1 @@
-hello
+hi
master!test *> ca -m 'hi world'
[master 2497405] hi world
 1 file changed, 1 insertion(+), 1 deletion(-)
master!test> l
2497405 hi world
f4317d6 hello world

weakish
24.6k 声望844 粉丝

a vigorously lazy deadbeat with matured immaturity